package com.suse.generator.mybatis.plus;

import com.baomidou.mybatisplus.generator.config.GlobalConfig;

public class GlobalConfigBuilder {

    private final GlobalConfig gc;

    private String project;

    public GlobalConfigBuilder(GlobalConfig gc) {
        this.gc = gc;
    }

    public GlobalConfigBuilder author(String author) {
        gc.setAuthor(author);
        return this;
    }

    public GlobalConfigBuilder project(String project) {
        this.project = project;
        gc.setOutputDir(project + "\\src\\main\\java");
        return this;
    }

    public String getProject() {
        return project;
    }
}
